package cn.tedu.egarticle.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
public class UserArticleParam {
    @NotEmpty(message = "标题不能为空")
    @ApiModelProperty(value = "标题",required = true)
    private String title;

    @Size(min = 10,max=500,message = "文章内容长度在10-500之间")
    @ApiModelProperty(value = "内容",required = true)
    private String content;
}
